package com.longy.gulimall.order.config;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service;


@Service
public class OrderThreadPoolExecutor {
    private ThreadPoolTaskExecutor orderThreadPool = null;

    public OrderThreadPoolExecutor(@Qualifier("orderThreadPool") ThreadPoolTaskExecutor orderThreadPool) {
        this.orderThreadPool = orderThreadPool;
    }

    public ThreadPoolTaskExecutor getPool(){
        return orderThreadPool;
    }

}
